All Questions
Tagged with pure-functionimmutability
1 question
5votes
3answers
1kviews
Can a function be pure if it depends on an immutable instance field?
In the following c# code example, the instance field [name] is readonly, and therefore is immutable after class construction. public sealed class Example { public readonly string name; ...